import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import {RolesComponent} from "./roles.component";
import {RoleAddComponent} from "./role-add/role-add.component";
import {RoleAssignUserComponent} from "./role-assign-user/role-assign-user.component";
import {RoleAuthorizedComponent} from "./role-authorized/role-authorized.component";
import {RoleDetailComponent} from "./role-detail/role-detail.component";
import {RoleUpdateComponent} from "./role-update/role-update.component";

const routes: Routes = [
  {
    path :"",
    component : RolesComponent
  },
  {
    path :"add",
    component :RoleAddComponent
  },
  {
    path :"update",
    component :RoleUpdateComponent
  },
  {
    path :"assign",
    component :RoleAssignUserComponent
  },
  {
    path :"authorized",
    component :RoleAuthorizedComponent
  },
  {
    path :"detail",
    component :RoleDetailComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class RolesRoutingModule { }
